﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=10,IE=9,IE=8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<title><?php echo $one['title']?> - <?php echo $config['site_name']?></title>
	<meta name="keywords" content="<?php
		$str = '';
		foreach($article_tag as $v) {
			$str .= $v['tag_name'].',';
		}
		echo trim($str,',');
		?>">
	<meta name="description" content="<?php echo $one['introduction']?>">
	<link rel='dns-prefetch' href='//cdn.bootcss.com' />
	<link rel='dns-prefetch' href='//s.w.org' />
	<link rel='stylesheet' id='style-css'  href='__HOME__/style/style.css' type='text/css' media='all' />
	<link rel='stylesheet' id='toc-screen-css'  href='__HOME__/style/screen.min.css' type='text/css' media='all' />
	<style>.article-content{font-size: 14px;}@media (max-width:640px){.article-content{font-size:16px}}.navbar .logo{width:160px}@media (max-width: 979px){.navbar .logo{width:100%}}</style><!--[if lt IE 9]><script src="__HOME__/js/html5.js"></script><![endif]-->
	<script type="text/javascript" src="/static/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
	<link rel="stylesheet" href="/static/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css">
	<script type="text/javascript">
		SyntaxHighlighter.all();
	</script>
	<script type="text/javascript" src="__HOME__/js/clipboard.min.js"></script>
</head>
<body class="post-template-default single single-post postid-2117 single-format-standard">
<div class="navbar-wrap">
	{include file="public:head" /}
<header class="header"></header>
<section class="container">
	<div class="content-wrap">
	<div class="content">
		<div class="breadcrumbs">你的位置：
			<a href="<?php echo $config['site_url']?>"><?php echo $config['site_name']?></a> <small>></small>
			<a href="/category/<?php echo $one['type_id']?>"><?php echo $one['type_name']?></a> <small>></small>
			<span class="muted"><?php echo $one['title']?></span>
		</div>
			<header class="article-header">
				<h1 class="article-title"><a href="/article/<?php echo $one['id']?>"><?php echo $one['title']?></a></h1>
				<div class="meta">
					<span class="muted"><a href="/category/<?php echo $one['type_id']?>"><i class="icon-list-alt icon12"></i> <?php echo $one['type_name']?></a></span>
					<time class="muted"><i class="ico icon-time icon12"></i> <?php echo formatDate($one['create_time'])?> (<?php echo date('Y-m-d',$one['create_time'])?>)</time>
					<span class="muted"><i class="ico icon-eye-open icon12"></i> <?php echo $one['reading_num']?>浏览</span>
					<span class="muted"><i class="icon-comment icon12"></i> <a href="/article/<?php echo $one['id']?>#respond"><span id = "sourceId::<?php echo $one['id']?>" class = "cy_cmt_count" ></span><script id="cy_cmt_num" src="https://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=cyryTyLri"></script>评论</a></span>
				</div>
			</header>

		<article class="article-content">
			<?php echo html_entity_decode($one['content'])?>		
			<p>源码安装、技术讨论、二次开发联系微信:</p>
			<p><img referrerPolicy="no-referrer" width="150" src="https://wx2.sinaimg.cn/large/bf84aaeagy1g5iz883o4ej20h80gyq48"/></p>
		</article>

		<footer class="article-footer">
			<div class="article-tags">继续浏览有关
				<?php foreach($article_tag as $v){?>
					<a href="/tagArticle/<?php echo $v['id']?>" rel="tag"><?php echo $v['tag_name']?></a>
				<?php } ?>
				的文章
			</div>
		</footer>
		<nav class="article-nav">
			<span class="article-nav-prev"><?php echo empty($previous_article['title']) ?  '': '上一篇'?>
				<a href="<?php echo empty($previous_article['title']) ? 'javascript:void(0)' : '/article/'.$previous_article['id']?>" rel="prev"><?php echo empty($previous_article['title']) ? '没有了' : $previous_article['title']?></a></span>
			<span class="article-nav-next">
				<a href="<?php echo empty($next_article) ? 'javascript:void(0)' : '/article/'.$next_article['id']?>" rel="next"><?php echo empty($next_article['title']) ? '没有了' : $next_article['title']?></a>
				<?php echo empty($next['title']) ? '' : '下一篇'?></span>
		</nav>

		<div class="relates">
			<h3>相关文章</h3>
			<ul>
				<?php foreach($related_article as $v){?>
				<li><a href="/article/<?php echo $v['id']?>"><?php echo $v['title']?></a></li>
				<?php } ?>
			</ul>
		</div>

	</div>
</div>
	<!-------右边开始------->
	<aside class="sidebar">
		{include file="public:right" /}
	</aside>
</section>
	{include file="public:footer" /}

	<script>
		 $(".syntaxhighlighter").click(function(){
			 alert(1);
		 });

	</script>


</div>
</body>
</html>
